package cn.edu.nuc.fourth.model;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotEmpty;

public class Student {
	private Integer studentid;

	private Integer userid;
	@NotEmpty(message = "不能为空")
	private String sdate;
	@NotEmpty(message = "不能为空")
	@Pattern(regexp = "[0-9]{0,4}", message = "必须为数字")
	private String stuNum;
	@NotEmpty(message = "不能为空")
	@Pattern(regexp = "[0-9]{0,4}", message = "必须为数字")
	private String classNum;
	@NotEmpty(message = "不能为空")
	@Pattern(regexp = "[0-9]{0,4}", message = "必须为数字")
	private String offNum;
	@NotEmpty(message = "不能为空")
	@Pattern(regexp = "[0-9]{0,4}", message = "必须为数字")
	private String graduateNum;
	@NotEmpty(message = "不能为空")
	@Pattern(regexp = "[0-9]{0,4}", message = "必须为数字")
	private String countryPrice;
	@NotEmpty(message = "不能为空")
	@Pattern(regexp = "[0-9]{0,4}", message = "必须为数字")
	private String provicePrice;
	@NotEmpty(message = "不能为空")
	@Pattern(regexp = "[0-9]{0,4}", message = "必须为数字")
	private String cityPrice;

	private String checkDate;

	private Integer xCheckstate;

	private Integer cCheckstate;

	private String checkComment;

	private String checkPer;

	private Integer state;

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Integer getStudentid() {
		return studentid;
	}

	public void setStudentid(Integer studentid) {
		this.studentid = studentid;
	}

	public Integer getUserid() {
		return userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public String getSdate() {
		return sdate;
	}

	public void setSdate(String sdate) {
		this.sdate = sdate == null ? null : sdate.trim();
	}

	public String getStuNum() {
		return stuNum;
	}

	public void setStuNum(String stuNum) {
		this.stuNum = stuNum == null ? null : stuNum.trim();
	}

	public String getClassNum() {
		return classNum;
	}

	public void setClassNum(String classNum) {
		this.classNum = classNum == null ? null : classNum.trim();
	}

	public String getOffNum() {
		return offNum;
	}

	public void setOffNum(String offNum) {
		this.offNum = offNum == null ? null : offNum.trim();
	}

	public String getGraduateNum() {
		return graduateNum;
	}

	public void setGraduateNum(String graduateNum) {
		this.graduateNum = graduateNum == null ? null : graduateNum.trim();
	}

	public String getCountryPrice() {
		return countryPrice;
	}

	public void setCountryPrice(String countryPrice) {
		this.countryPrice = countryPrice == null ? null : countryPrice.trim();
	}

	public String getProvicePrice() {
		return provicePrice;
	}

	public void setProvicePrice(String provicePrice) {
		this.provicePrice = provicePrice == null ? null : provicePrice.trim();
	}

	public String getCityPrice() {
		return cityPrice;
	}

	public void setCityPrice(String cityPrice) {
		this.cityPrice = cityPrice == null ? null : cityPrice.trim();
	}

	public String getCheckDate() {
		return checkDate;
	}

	public void setCheckDate(String checkDate) {
		this.checkDate = checkDate == null ? null : checkDate.trim();
	}

	public Integer getxCheckstate() {
		return xCheckstate;
	}

	public void setxCheckstate(Integer xCheckstate) {
		this.xCheckstate = xCheckstate;
	}

	public Integer getcCheckstate() {
		return cCheckstate;
	}

	public void setcCheckstate(Integer cCheckstate) {
		this.cCheckstate = cCheckstate;
	}

	public String getCheckComment() {
		return checkComment;
	}

	public void setCheckComment(String checkComment) {
		this.checkComment = checkComment == null ? null : checkComment.trim();
	}

	public String getCheckPer() {
		return checkPer;
	}

	public void setCheckPer(String checkPer) {
		this.checkPer = checkPer == null ? null : checkPer.trim();
	}

	@Override
	public String toString() {
		return "Student [studentid=" + studentid + ", userid=" + userid + ", sdate=" + sdate + ", stuNum=" + stuNum
				+ ", classNum=" + classNum + ", offNum=" + offNum + ", graduateNum=" + graduateNum + ", countryPrice="
				+ countryPrice + ", provicePrice=" + provicePrice + ", cityPrice=" + cityPrice + ", checkDate="
				+ checkDate + ", xCheckstate=" + xCheckstate + ", cCheckstate=" + cCheckstate + ", checkComment="
				+ checkComment + ", checkPer=" + checkPer + ", state=" + state + "]";
	}

}